/*    */ package com.umeng.newxp.view;
/*    */ 
/*    */ import android.content.Context;
/*    */ import android.content.res.Resources;
/*    */ import android.view.ViewGroup;
/*    */ import android.view.ViewGroup.LayoutParams;
/*    */ import android.view.animation.Animation;
/*    */ import android.view.animation.AnimationUtils;
/*    */ import android.view.animation.LinearInterpolator;
/*    */ import android.widget.ImageView;
/*    */ import android.widget.RelativeLayout;
/*    */ import android.widget.RelativeLayout.LayoutParams;
/*    */ import com.umeng.common.util.j;
/*    */ import com.umeng.newxp.a.a;
/*    */ import com.umeng.newxp.a.b;
/*    */ 
/*    */ public class aI
/*    */ {
/*    */   private ViewGroup a;
/*    */   private Context b;
/*    */   private ImageView c;
/*    */   private RelativeLayout d;
/*    */   private boolean e;
/*    */ 
/*    */   public aI(Context paramContext, ViewGroup paramViewGroup)
/*    */   {
/* 27 */     this.a = paramViewGroup;
/* 28 */     this.b = paramContext;
/*    */ 
/* 30 */     this.c = new ImageView(this.b);
/* 31 */     this.c.setImageDrawable(this.b.getResources().getDrawable(
/* 32 */       b.f(this.b)));
/* 33 */     this.e = false;
/* 34 */     new j(this.b);
/* 35 */     int i = j.a(60.0F);
/* 36 */     RelativeLayout.LayoutParams localLayoutParams = new RelativeLayout.LayoutParams(
/* 37 */       i, i);
/* 38 */     localLayoutParams.addRule(13);
/* 39 */     this.d = new RelativeLayout(this.b);
/* 40 */     this.d.addView(this.c, localLayoutParams);
/*    */   }
/*    */ 
/*    */   public void a() {
/* 44 */     if (this.e) {
/* 45 */       return;
/*    */     }
/* 47 */     this.e = true;
/*    */ 
/* 49 */     ViewGroup.LayoutParams localLayoutParams = new ViewGroup.LayoutParams(
/* 50 */       -1, 
/* 51 */       -1);
/* 52 */     this.a.addView(this.d, localLayoutParams);
/* 53 */     this.d.setVisibility(0);
/*    */ 
/* 55 */     Animation localAnimation = AnimationUtils.loadAnimation(this.b, 
/* 56 */       a.d(this.b));
/*    */ 
/* 58 */     localAnimation.setInterpolator(new LinearInterpolator());
/* 59 */     localAnimation.setAnimationListener(new aJ(this));
/*    */ 
/* 74 */     this.c.startAnimation(localAnimation);
/*    */   }
/*    */ 
/*    */   public void b() {
/* 78 */     if (!this.e)
/* 79 */       return;
/* 80 */     this.e = false;
/* 81 */     this.a.removeView(this.d);
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\umeng_sdk.jar
 * Qualified Name:     com.umeng.newxp.view.aI
 * JD-Core Version:    0.6.2
 */